import { createStore, combineReducers, compose, applyMiddleware } from 'redux';
import detail from './view/Detail/reducer'
import MyMiddleware from './MyMiddleware';

const reducers = combineReducers({detail})


const finalCreateStore = compose(
  applyMiddleware(MyMiddleware),
)(createStore);

const store = finalCreateStore(reducers);


export default store